package com.data.modules.online.cgform.converter.p010b;

import java.util.HashMap;
import java.util.Map;
import com.data.common.util.ConvertUtils;
import com.data.modules.online.cgform.converter.p009a.ConfigConvert;
import com.data.modules.online.cgform.entity.OnlCgformField;
import com.data.modules.online.cgform.util.CgformUtil;

public class CatTreeConverter extends ConfigConvert {

    private String f126f;

    public String getTreeText() {
        return this.f126f;
    }

    public void setTreeText(String treeText) {
        this.f126f = treeText;
    }

    public CatTreeConverter(OnlCgformField onlCgformField) {
        super(CgformUtil.f252Z, "ID", CgformUtil.f265aa);
        this.f126f = onlCgformField.getDictText();
        this.f118b = onlCgformField.getDbFieldName();
    }

    @Override
    public Map<String, String> getConfig() {
        if (ConvertUtils.isEmpty(this.f126f)) {
            return null;
        }
        HashMap hashMap = new HashMap();
        hashMap.put("treeText", this.f126f);
        hashMap.put("field", this.f118b);
        return hashMap;
    }
}
